package com.example.core.constants;

import java.util.concurrent.TimeUnit;

public class CacheConstants {
    public static final String LOGIN_TOKEN_KEY = "loginToken:";

    public final static String PHONE_CODE_KEY = "phone:code:";

    public static final long LOGIN_EXPIRE = 180;

    public static final long REFRESH_TIME = 60;

    public static final TimeUnit TIME_UNIT = TimeUnit.MINUTES;

    public static final long PHONE_CODE_EXPIRE = 5;

    public final static String EXAM_UNFINISHED_LIST = "exam:start:l"; // 进行中竞赛列表

    public final static String EXAM_HISTORY_LIST = "exam:history:l";  // 历史竞赛列表

    public static final String EXAM_QUESTION_LIST = "exam:question:l:"; // 竞赛中题目列表

    public final static String EXAM_DETAIL = "exam:detail:";    // 竞赛详情信息

    public final static String USER_EXAM_LIST = "user:exam:l:";   //用户竞赛列表

    public final static String USER_DETAIL = "user:data:";   //用户详情信息

    public final static long USER_EXP = 10;

    public static final String USER_UPLOAD_TIMES_KEY = "user:upload:time";

    public static final String QUESTION_LIST = "question:l";

    public static final String QUESTION_HOST_LIST = "question:host:l";

    public static final String USER_MESSAGE_LIST = "user:message:l:";

    public static final String MESSAGE_DETAIL = "massage:detail:";

    public static final String EXAM_RANK_LIST = "exam:rank:l:";

    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;
}
